

import 'package:flutter/material.dart';

/**
 *
 * ThemeData(
    //主题色
    primarySwatch: Colors.blue,
    //波纹颜色
    splashColor: Colors.transparent,
    //高亮颜色
    highlightColor: Colors.transparent,
    //亮度
    brightness: Brightness.light,
    //主要颜色: 导航/底部TabBar
    primaryColor: Colors.blue,
    //FloatingActionButton/按钮颜色
    accentColor: Colors.pink,
    //card主题
    cardTheme: CardTheme(
    color: Colors.pinkAccent,
    elevation: 10,
    margin: EdgeInsets.only(left: 10, right: 10),
    shape: Border.all(width: 2, color: Colors.blue)),

    //按钮主题
    buttonTheme: ButtonThemeData(
    minWidth: 0,
    height: 30,
    splashColor: Colors.transparent,
    highlightColor: Colors.transparent),
    //文本主题
    textTheme: TextTheme(
    body1: TextStyle(fontSize: 16),
    )),
 *
 * */


class theme_data {

  static const double  _primary_font_size = 20;
  static const double  _text_font = 20;


  //亮色模式
  static final ThemeData lightTheme = ThemeData(
    primarySwatch: Colors.blue,
    primaryTextTheme: TextTheme(
      title: TextStyle(
        fontSize: _primary_font_size,
        color: Colors.white
      )
    ),
    textTheme: TextTheme(
      body1: TextStyle(
        fontSize: _text_font,
        color: Colors.black54
      )
    )

  );

  //暗黑模式
  static final ThemeData darkTheme = ThemeData(
    primarySwatch: Colors.blueGrey,
    primaryTextTheme: TextTheme(
      title: TextStyle(
        color: Colors.white70,
        fontSize: _primary_font_size
      )
    ),

    textTheme: TextTheme(
      body1: TextStyle(
        fontSize: _text_font,
        color: Colors.white70
      )
    )

  );



}